<?php
namespace Amis\form;
class InputMonthRange extends FormItem
{
    public string $type = 'input-month-range';

    public function format(string $format = 'X')
    {
        $this->format = $format;
        return $this;
    }

    public function inputFormat(string $inputFormat = 'YYYY-DD')
    {
        $this->inputFormat = $inputFormat;
        return $this;
    }

    public function placeholder(string $placeholder = '请选择日期')
    {
        $this->placeholder = $placeholder;
        return $this;
    }

    public function minDate(string $minDate)
    {
        $this->minDate = $minDate;
        return $this;
    }

    public function maxDate(string $maxDate)
    {
        $this->maxDate = $maxDate;
        return $this;
    }

    public function minDuration(string $minDuration)
    {
        $this->minDuration = $minDuration;
        return $this;
    }

    public function maxDuration(string $maxDuration)
    {
        $this->maxDuration = $maxDuration;
        return $this;
    }

    public function utc(bool $utc = false)
    {
        $this->utc = $utc;
        return $this;
    }

    public function clearable(bool $clearable = true)
    {
        $this->clearable = $clearable;
        return $this;
    }

    public function embed(bool $embed = false)
    {
        $this->embed = $embed;
        return $this;
    }
}